package top.roud.springcloudgatewaydemo.controller;

import org.springframework.web.bind.annotation.*;
import java.util.Map;

/**
 * @ClassName: ConsumerController
 * @Description:
 * @Author roud
 * @Date 2023/2/16
 * @Version 1.0
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerController {
    @GetMapping("/getHeader")
    public Map getHeader(@RequestHeader Map<String, String> header){
        return header;
    }
    @GetMapping("/getParameter")
    public String getParameter(@RequestParam("gatewayname") String name){
        return name;
    }
}
